<template>
    <div class="gray-box">
        <div class="title">
            <h2>{{title}}</h2>
            <div>
                <slot name="right"></slot>
            </div>
        </div>
        <!--内容-->
        <div>
            <slot name="content"></slot>
        </div>
    </div>
</template>
<script>
    export default {
        props: [
            'title'
        ]
    }
</script>
<style lang="scss" rel="stylesheet/scss" scoped>
    .gray-box {
        position: relative;
        margin-bottom: 30px;
        overflow: hidden;
        background: #fff;
        /*border-radius: 8px;*/
      /*  border: 1px solid #dcdcdc;
        box-shadow: 0 3px 8px -6px rgba(0, 0, 0, .1);*/

        .title {
            padding-left: 30px;
            position: relative;
            z-index: 10;
            height: 60px;
            width: 100%;
            text-align: center;
            padding: 0 10px 0 24px;
            border-bottom: 1px solid #fbfbfb;
            border-radius: 8px 8px 0 0;
            box-shadow: rgba(0, 0, 0, .06) 0 1px 7px;
            background: #062e63;
            background: -webkit-linear-gradient(#062e63, #062e63);
            background: linear-gradient(#062e63, #062e63);
            line-height: 60px;
            font-size: 18px;
            color: #ffffff;
            display: flex;
            justify-content: space-between;
            align-items: center;

            h2 {
                font-size: 18px;
                font-weight: 400;
                color: #fbfbfb;
                display: inline-block;
            }
        }
    }
</style>
